<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">

<ui:composition>
	<!-- "loginRequest" is handled by SpringSecurity and is configured in app-prod-security.xml  -->
	<form id="loginFormId" name="loginFormName" action="#{request.contextPath}/loginRequest" method="post">
		<h:panelGrid columns="2" columnClasses="top , top">
				<rich:panel>
					<h:outputText value="#{bundle['generic.login.username']}" />
				</rich:panel>
				<rich:panel>
					<h:inputText id="j_username" value=""/>
				</rich:panel>

				<rich:panel>
					<h:outputText value="#{bundle['generic.login.password']}" />
				</rich:panel>
				<rich:panel>
					<h:inputSecret id="j_password" value="" />
				</rich:panel>

				<h:commandButton type="submit" value="#{bundle['generic.login.submit']}" />
			<br/>
			<div style="height:10px;" />
			<h:outputText value="#{not empty param['login_error']?bundle['generic.login.invalidCredentialsMessage']:''}" />
		</h:panelGrid>
	</form>
</ui:composition>  
</html>

